package com.meilai.project.service.finance.payment;

import com.baomidou.mybatisplus.extension.service.IService;
import com.meilai.project.dto.finance.payment.PaymentWriteOffApplyCheckDTO;
import com.meilai.project.dto.finance.payment.PaymentWriteOffApplyDTO;
import com.meilai.project.entity.finance.payment.PaymentWriteOffApply;
import com.meilai.project.vo.finance.payment.PaymentApplyVO;

/**
 * <p>
 * 付款单 服务类
 * </p>
 *
 * @author xchen
 * @since 2022-02-12
 */
public interface PaymentWriteOffApplyService extends IService<PaymentWriteOffApply> {

    PaymentApplyVO getOneById(Long id);

    // 保存
    boolean save(PaymentWriteOffApplyDTO dto);

    // 提交
    boolean begin(PaymentWriteOffApplyDTO dto);

    // 通过
    boolean pass(PaymentWriteOffApplyCheckDTO dto);

    // 驳回
    boolean returnBack(PaymentWriteOffApplyCheckDTO dto);

    // 删除
    boolean delete(Long id);

    // 彻底删除
    boolean actualDelete(Long id);
    
}
